<template>
  <div>
    <!-- 礼遇陕西 -->
    <div id="main">
      <LiYunav :lysx="lysx" />
      <WoYao :wybData="wybData" />
      <TeSezt :tszhuanti="tszhuanti" />
    </div>
  </div>
</template>

<script>
//先引用--封装好的link.js
import link from "@/api/link.js";
//首页--组件引用
import LiYunav from "@/components/life/LiYuShanxi/LiYunav.vue";
import WoYao from "@/components/life/LiYuShanxi/WoYao.vue";
import TeSezt from "@/components/life/LiYuShanxi/TeSezt.vue";

export default {
  components: {
    WoYao,
    LiYunav,
    TeSezt,
  },
  data() {
    return {
      lysx: [],
      wybData: [],
      tszhuanti: [],
    };
  },
  mounted() {
    //需要自动发送请求---axios调用link---发送请求；
    //礼遇陕西--分类
    link("user/life12/datamock").then(({ data }) => {
      console.log(data);
      this.lysx = data.lysx;
    });
    //礼遇陕西--分类
    link("user/life14/datamock").then(({ data }) => {
      console.log(data);
      this.tszhuanti = data.tszhuanti;
    });
  },
};
</script>

<style>
#main {
  height: 1000px;
  overflow: auto;
  margin-bottom: 0.7333rem;
}
</style>